The Print Record ('PREC') Resource
The print record ('PREC'
) resource defines a default print record for a driver, which is used to createTPrint
records for compatibility with Macintosh Printing Manager applications. When the user of a Macintosh Printing Manager application prints a document, this resource is used to define the initial values to use for printing that document. This is an optional resource. If you don't supply one, QuickDraw GX uses the Apple default values.The Apple default version of the
'PREC'
resource is 120 bytes long and matches the structure of the universal print structure, which is described in the section "The Universal Print Structure" beginning on page 4-12 in the chapter "Printing Messages."The structure of the print record resource is driver dependent. Many printer drivers use the Apple default values and then modify the universal print structure fields to meet their needs.
Listing 6-16 shows an example of a print record resource that is the print record for the ImageWriter II printer driver.
Listing 6-16 An example of a print record resource
resource 'PREC' (0, sysHeap, purgeable) { 4, /* increase from 3 to 4 for QuickDraw GX */ 0, 72, 80, {0, 0, 752, 640}, {-36, -20, 756, 660}, 1, 0, NoDftBts, NoResSet, NoScroll, NoZoom, NormPix, Portrait, LowRes, 1320, 1020, 0, Fanfold, 0, 72, 80, {0, 0, 752, 640}, 80, 32, 640, 3200, 24, norm, 1, 1, 1, scanTB, 1, 9999, 1, Spool, 1, 0, 0, 0, 0, 0, 0, 1 };
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help